/*
 * @Author: chen haoxuan
 * @Date: 2021-06-24 21:46:48
 * @LastEditTime: 2021-06-24 21:50:17
 */
#include<strstream>
#include<iostream>
using namespace std;
struct student
{
    int num;
    char name[20];
    float score;
};
int main()
{
    student stud[3] = {1, "w", 10, 101, "c", 99, 102, "f", 90};
    char c[50];
    ostrstream strout(c, 30);
    for (int i = 0; i < 3; i++)
        strout<<stud[i].num<<stud[i].name<<stud[i].score;
    strout<<ends;
    cout<<"array c:"<<c<<endl;
    return 0;
}